package com.design.pattern.command.projection4;

/**
 * 命令发送者
 */
public class ConcreteCommandSender implements CommandSender {
    CommandChannel channel;

    public ConcreteCommandSender(CommandChannel channel) {
        this.channel = channel;
    }

    @Override
    public void send(Command command) {
        channel.spreadTheOrder(command);
    }
}
